home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11424 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  41 lines

  1. Path: uuneo.neosoft.com!usenet
  2. From: Wmatthew@lan-aces.com (W. Matthews)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Help with templates.  Ugh!
  5. Date: 14 Mar 1996 15:18:57 GMT
  6. Organization: LAN-ACES, Inc.
  7. Message-ID: <4i9dd1$dtu@uuneo.neosoft.com>
  8. References: <4i1v7u$na2@atlas.tncnet.com>
  9. NNTP-Posting-Host: 198.65.178.8
  10. X-Newsreader: WinVN 0.92.5
  11.  
  12. In article <4i1v7u$na2@atlas.tncnet.com>, Simon Lee (Simon Lee) says:
  13. >
  14. >
  15. >Help!
  16. >
  17. >I'm trying to create a library with a template class, but when I try to
  18. >instanciate it in my main program, I get an unresolved symbol error.  I
  19. >read through the VC++ 4.0 help files, and found out that I need to
  20. >explicitly instanciate the object, but that defeats the purpose of having
  21. >a template class.  Does anyone know how I can create a library of template
  22. >classes, and be able to link them without the unresolved symbol error?
  23. >I'm trying to create a template link list class.
  24. >
  25. >Please email any help.
  26. >
  27. >Thank you,
  28. >Simon Lee
  29. >
  30. I haven't tried to do this personally, but if you make 1 example
  31. instantiation (ie: int), can you then use the templates as well?
  32. ______________________________________________
  33. |Wyatt Matthews:       Tech Support Department |
  34. |WMATTHEW@LAN-ACES.COM        -Internet-       |
  35. |WMATTHEW.MHS@LAN-ACES          -MHS-          |
  36. |LAN-ACES Tech Support      (713)890-9786      |
  37. |LAN-ACES BBS               (713)890-9790      |
  38. |LAN-ACES Fax               (713)890-9731      |
  39. |LAN-ACES Sales             (713)890-9787      |
  40. ______________________________________________
  41.